<?php

class galerie_controller extends Component {

    function defaut(){
        $galerieList = (array)Base::Load(CLASS_GALLERY)->getGalleryList();

        $static = Base::Load(CLASS_STATIC)->getAccueil();
        $this->_view->assign('firstPic', str_replace('\\', '', $galerieList[0]['child'][0]->file->url));
        $this->_view->assign('galList',$galerieList);
        $this->_view->assign('staticPage',$static);
        $this->_view->addBlock('content','defaut.tpl');
    }

}